
IF (PYTHON_EXECUTABLE)

FILE(GLOB TMP ${CMAKE_BINARY_DIR}/python/*)
list(GET TMP 0 TRAX_PYTHON_PATH)

ADD_TEST(NAME test_python_images COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_images.py WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
set_tests_properties(test_python_images PROPERTIES ENVIRONMENT "LD_LIBRARY_PATH=${CMAKE_BINARY_DIR};PYTHONPATH=${TRAX_PYTHON_PATH}")





ENDIF()